package edu.neumont.pro180._2009_q2.chess;

import java.util.Collection;
import java.util.HashSet;

import edu.neumont.pro180._2009_q2.GamePieceMove;
import edu.neumont.pro180._2009_q2.Square;

public class King extends LinearlyMovingPiece {
	private final int value = 50;
	
	@Override
	public int getValue() {
		return value;
	}

	@Override
	public Collection<Square> getPossibleSquares() {
		Collection<Square> moves = new HashSet<Square>();
		moves.addAll(super.getDiagonals(this.getPosition(), 1));
		moves.addAll(super.getVerticalAndHorizontals(this.getPosition(), 1));
		return moves;
	}

	@Override
	public GamePieceMove getMove(Square destination) {
		// TODO: Implement logic for castling. See the Pawn class for an example
		// of custom move classes.
		return super.getMove(destination);
	}
}
